package wsz.consumer;

import wsz.api.IUserService;
import wsz.consumer.proxy.RpcClientProxy;
import wsz.pojo.User;

/**
 * @author wsz
 * @date 2021/11/30 18:39
 **/
public class ClientBootStrap {
    public static void main(String[] args) {
        IUserService userService = (IUserService) RpcClientProxy.createProxy(IUserService.class);
        User user = userService.getById(1);
        System.out.println(user);
    }
}
